package com.ting.test.algorithms.堆.加强堆;

import java.util.Comparator;

public class MyComparator implements Comparator<Student> {
    @Override
    public int compare(Student o1, Student o2) {
        //默认 当o1-o2<=0 o1在o2后前面
        //默认 当o1-o2>0 o1在o2面
        return o1.getAge() - o2.getAge();
    }
}
